

h2 {
  text-align: center;
  margin-bottom: 25px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 14px;
  border: 1px solid #ddd;
  text-align: center;
  transition: background 0.3s ease;
}

th {
  background-color: #eaf4ff;
  font-weight: bold;
}

td:first-child {
  background-color: #f4faff;
  font-weight: bold;
  text-align: left;
}

tbody tr:hover {
  background-color: #f0f8ff;
  transform: scale(1.01);
  transition: all 0.3s ease-in-out;
}

tr.red-text td {
  color: red;
  background-color: #fff4f4;
}


/* Animation */
@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hover Animation for Icon */
.right-icon:hover {
  transform: scale(1.2);
  transition: 0.3s ease;
  cursor: pointer;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
  }

  td {
    padding-left: 50%;
    position: relative;
    text-align: left;
  }

  td::before {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-weight: bold;
    white-space: nowrap;
  }

}



.table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  background-color: #fff;
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
}

th {
  background-color: #007bff;
  color: white;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.right-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.right-icon:hover {
  transform: scale(1.4) rotate(10deg);
}

.red-text td {
  color: red;
  font-weight: bold;
}
.cross-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cross-icon:hover {
  transform: scale(1.2) rotate(-10deg);
}
